package com.catchman.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.catchman.entity.SysPerm;
import com.catchman.vo.AuthVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author catchman
 * @since 2019-04-29
 */
public interface SysPermService extends IService<SysPerm> {

    Set<AuthVo> getPermsByUserId(String userId);

    List<SysPerm> getPermsByRoleId(String roleId);

    void saveOrUpdate(List<SysPerm> perms);
}
